/**
 * 逻辑、功能相关描述:
 *
 * @author yandawei 编写日期：2008-9-16
 */
package com.ce.pms.common.model;
import javax.persistence.*;

import com.ce.pms.house.model.BuildingDomain;

/**
 * 实体名称:楼栋权限 关联数据表:SEC_RIGHT_BUILDING
 *
 */
@Entity
@Table(name = "SEC_RIGHT_BUILDING")
@PrimaryKeyJoinColumn(name = "BUILDING_RIGHT_ID")
public class SecRightBuilding extends SecRight {

	/**
	 * 楼栋
	 */
	@OneToOne
	@JoinColumn(name = "BUILDING_ID", nullable = false)
	private BuildingDomain building;

	public BuildingDomain getBuilding() {
		return building;
	}

	public void setBuilding(BuildingDomain building) {
		this.building = building;
	}

	public SecRightBuilding() {
	}

}
